package com.sam.query.mould.simple.domain;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Operation entity.
 * @author MyEclipse Persistence Tools
 */
public class Operation implements java.io.Serializable {

	// Fields    

	private static final long serialVersionUID = 1L;
	private Long operationId;
	private Integer partMonitorId;
	private Integer monitorOrder;
	private String operationNameId;
	private String operationName;
	private String operationContent;
	private String planResourceId;
	private String equipType;
	private String processingHoursQuota;
	private Double processingHoursActual;
	private String mark;
	private String machiningAttribute;
	private Timestamp planStartTime;
	private Timestamp planStopTime;
	private Date planRestartTime;
	private Byte reCal;
	private String state;
	private Date term;
	private Short restrictType;
	private Date restrictTime;
	private Integer priority;
	private String color;
	private Short shape;
	private String remark;
	private Byte milestone;
	private Byte keyOp;
	private Short canExterior;
	private Byte planExterior;
	private Byte actualExterior;
	private Short type;
	private Double exteriorCost;
	private Date earlistCanStartTime;
	private Date latestNeedFinishTime;
	private String finishLevel;
	private Byte isAffirmManHour;
	private String selfCheckQuality;
	private Date demandTime;
	private Double partNumber;
	private Date expediteTime;
	private String expediteMan;
	private Date specifyFinishTime;
	private String operationType;
	private Integer outsourcingNo;
	private String specifyTimeMan;
	private Date confirmTime;
	private Date actualStartTime;
	private Date actualStopTime;
	private String actualResourceId;
	private String actualOperatorId;
	private Short pauseProcess;
	private String modifyExteriorHuman;
	private String associatedId;
	private Double singleOperationTime;
	private Integer planId;
	private Double grossHours;
	private Date planStartTime0;
	private Date planStopTime0;
	private Byte schedulState;
	private Integer isUrgent;
	private Integer dispatchState;
	private Date scheduleStartTime;
	private Date scheduleStopTime;
	private Byte isChange;
	private String scheduledStartTime;
	private String scheduledStopTime;
	private Double ratio;
	private String addRecordsPerson;
	private Date addRecordsTime;
	private String autoMtid;
	private String versionInfo;
	private String operationClientId;
	private String activityType;
	private Byte isConfirmed;
	private Byte processless;

	private String planHours;
	private String actualHours;
	private String isExterior;
	private int isEligible = -1;
	private int isDealed = -1;
	private String planResource;
	private String actualResource;
	private boolean hasFile;
	private String operator;

	private Timestamp transferTime; //流转时间
	private int transferState; //流转状态 0:接收 1:发送
	private String transferCurrentDeptName;//操作人当前所在部门
	private String transferDeptName;//流转部门名
	private String transferOperatorName;

	private boolean defer;
	private int qualityState;

	public String checkResult;
	public String treatedResult;
	public String resultDetail;
	public String treatedSuggestion;

	//technics restrict
	public int partOrderId;
	public int operationOrderId;
	public List<Operation> preList;

	// Constructors

	/** default constructor */
	public Operation() {
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 50)
	public Long getOperationId() {
		return this.operationId;
	}

	public void setOperationId(Long id) {
		this.operationId = id;
	}

	@Column(name = "partMonitorID")
	public Integer getPartMonitorId() {
		return this.partMonitorId;
	}

	public void setPartMonitorId(Integer partMonitorId) {
		this.partMonitorId = partMonitorId;
	}

	@Column(name = "monitorOrder", nullable = false)
	public Integer getMonitorOrder() {
		return this.monitorOrder;
	}

	public void setMonitorOrder(Integer monitorOrder) {
		this.monitorOrder = monitorOrder;
	}

	@Column(name = "operationNameID", length = 50)
	public String getOperationNameId() {
		return this.operationNameId;
	}

	public void setOperationNameId(String operationNameId) {
		this.operationNameId = operationNameId;
	}

	@Column(name = "operationName", length = 50)
	public String getOperationName() {
		return this.operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}

	@Column(name = "operationContent", length = 500)
	public String getOperationContent() {
		return this.operationContent;
	}

	public void setOperationContent(String operationContent) {
		this.operationContent = operationContent;
	}

	@Column(name = "planResourceID", length = 50)
	public String getPlanResourceId() {
		return this.planResourceId;
	}

	public void setPlanResourceId(String planResourceId) {
		this.planResourceId = planResourceId;
	}

	@Column(name = "equipType", length = 50)
	public String getEquipType() {
		return this.equipType;
	}

	public void setEquipType(String equipType) {
		this.equipType = equipType;
	}

	@Column(name = "processingHoursQuota", nullable = false, length = 10)
	public String getProcessingHoursQuota() {
		return this.processingHoursQuota;
	}

	public void setProcessingHoursQuota(String processingHoursQuota) {
		this.processingHoursQuota = processingHoursQuota;
	}

	@Column(name = "processingHoursActual", precision = 18, scale = 6)
	public Double getProcessingHoursActual() {
		return this.processingHoursActual;
	}

	public void setProcessingHoursActual(Double processingHoursActual) {
		this.processingHoursActual = processingHoursActual;
	}

	@Column(name = "mark", length = 10)
	public String getMark() {
		return this.mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	@Column(name = "machiningAttribute", length = 10)
	public String getMachiningAttribute() {
		return this.machiningAttribute;
	}

	public void setMachiningAttribute(String machiningAttribute) {
		this.machiningAttribute = machiningAttribute;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "planStartTime", length = 23)
	public Timestamp getPlanStartTime() {
		return this.planStartTime;
	}

	public void setPlanStartTime(Timestamp planStartTime) {
		this.planStartTime = planStartTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "planStopTime", length = 23)
	public Timestamp getPlanStopTime() {
		return this.planStopTime;
	}

	public void setPlanStopTime(Timestamp planFinishTime) {
		this.planStopTime = planFinishTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "planRestartTime", length = 23)
	public Date getPlanRestartTime() {
		return this.planRestartTime;
	}

	public void setPlanRestartTime(Date planRestartTime) {
		this.planRestartTime = planRestartTime;
	}

	@Column(name = "reCal")
	public Byte getReCal() {
		return this.reCal;
	}

	public void setReCal(Byte reCal) {
		this.reCal = reCal;
	}

	@Column(name = "state", length = 20)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "term", length = 23)
	public Date getTerm() {
		return this.term;
	}

	public void setTerm(Date term) {
		this.term = term;
	}

	@Column(name = "restrictType")
	public Short getRestrictType() {
		return this.restrictType;
	}

	public void setRestrictType(Short restrictType) {
		this.restrictType = restrictType;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "restrictTime", length = 23)
	public Date getRestrictTime() {
		return this.restrictTime;
	}

	public void setRestrictTime(Date restrictTime) {
		this.restrictTime = restrictTime;
	}

	@Column(name = "priority")
	public Integer getPriority() {
		return this.priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	@Column(name = "color", length = 20)
	public String getColor() {
		return this.color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	@Column(name = "shape")
	public Short getShape() {
		return this.shape;
	}

	public void setShape(Short shape) {
		this.shape = shape;
	}

	@Column(name = "remark", length = 100)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "milestone", nullable = false)
	public Byte getMilestone() {
		return this.milestone;
	}

	public void setMilestone(Byte milestone) {
		this.milestone = milestone;
	}

	@Column(name = "keyOp", nullable = false)
	public Byte getKeyOp() {
		return this.keyOp;
	}

	public void setKeyOp(Byte keyOp) {
		this.keyOp = keyOp;
	}

	@Column(name = "canExterior")
	public Short getCanExterior() {
		return this.canExterior;
	}

	public void setCanExterior(Short canExterior) {
		this.canExterior = canExterior;
	}

	@Column(name = "planExterior")
	public Byte getPlanExterior() {
		return this.planExterior;
	}

	public void setPlanExterior(Byte planExterior) {
		this.planExterior = planExterior;
	}

	@Column(name = "actualExterior")
	public Byte getActualExterior() {
		return this.actualExterior;
	}

	public void setActualExterior(Byte actualExterior) {
		this.actualExterior = actualExterior;
	}

	@Column(name = "type")
	public Short getType() {
		return this.type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	@Column(name = "exteriorCost", precision = 9)
	public Double getExteriorCost() {
		return this.exteriorCost;
	}

	public void setExteriorCost(Double exteriorCost) {
		this.exteriorCost = exteriorCost;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "earlistCanStartTime", length = 23)
	public Date getEarlistCanStartTime() {
		return this.earlistCanStartTime;
	}

	public void setEarlistCanStartTime(Date earlistCanStartTime) {
		this.earlistCanStartTime = earlistCanStartTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "latestNeedFinishTime", length = 23)
	public Date getLatestNeedFinishTime() {
		return this.latestNeedFinishTime;
	}

	public void setLatestNeedFinishTime(Date latestNeedFinishTime) {
		this.latestNeedFinishTime = latestNeedFinishTime;
	}

	@Column(name = "finishLevel", length = 200)
	public String getFinishLevel() {
		return this.finishLevel;
	}

	public void setFinishLevel(String finishLevel) {
		this.finishLevel = finishLevel;
	}

	@Column(name = "isAffirmManHour")
	public Byte getIsAffirmManHour() {
		return this.isAffirmManHour;
	}

	public void setIsAffirmManHour(Byte isAffirmManHour) {
		this.isAffirmManHour = isAffirmManHour;
	}

	@Column(name = "selfCheckQuality", length = 200)
	public String getSelfCheckQuality() {
		return this.selfCheckQuality;
	}

	public void setSelfCheckQuality(String selfCheckQuality) {
		this.selfCheckQuality = selfCheckQuality;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "demandTime", length = 23)
	public Date getDemandTime() {
		return this.demandTime;
	}

	public void setDemandTime(Date demandTime) {
		this.demandTime = demandTime;
	}

	@Column(name = "partNumber", precision = 18)
	public Double getPartNumber() {
		return this.partNumber;
	}

	public void setPartNumber(Double partNumber) {
		this.partNumber = partNumber;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "expediteTime", length = 23)
	public Date getExpediteTime() {
		return this.expediteTime;
	}

	public void setExpediteTime(Date expediteTime) {
		this.expediteTime = expediteTime;
	}

	@Column(name = "expediteMan", length = 50)
	public String getExpediteMan() {
		return this.expediteMan;
	}

	public void setExpediteMan(String expediteMan) {
		this.expediteMan = expediteMan;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "specifyFinishTime", length = 23)
	public Date getSpecifyFinishTime() {
		return this.specifyFinishTime;
	}

	public void setSpecifyFinishTime(Date specifyFinishTime) {
		this.specifyFinishTime = specifyFinishTime;
	}

	@Column(name = "operationType")
	public String getOperationType() {
		return this.operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}

	@Column(name = "outsourcingNo")
	public Integer getOutsourcingNo() {
		return this.outsourcingNo;
	}

	public void setOutsourcingNo(Integer outsourcingNo) {
		this.outsourcingNo = outsourcingNo;
	}

	@Column(name = "specifyTimeMan", length = 50)
	public String getSpecifyTimeMan() {
		return this.specifyTimeMan;
	}

	public void setSpecifyTimeMan(String specifyTimeMan) {
		this.specifyTimeMan = specifyTimeMan;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "confirmTime", length = 23)
	public Date getConfirmTime() {
		return this.confirmTime;
	}

	public void setConfirmTime(Date confirmTime) {
		this.confirmTime = confirmTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "actualStartTime", length = 23)
	public Date getActualStartTime() {
		return this.actualStartTime;
	}

	public void setActualStartTime(Date actualStartTime) {
		this.actualStartTime = actualStartTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "actualStopTime", length = 23)
	public Date getActualStopTime() {
		return this.actualStopTime;
	}

	public void setActualStopTime(Date actualStopTime) {
		this.actualStopTime = actualStopTime;
	}

	@Column(name = "actualResourceID", length = 50)
	public String getActualResourceId() {
		return this.actualResourceId;
	}

	public void setActualResourceId(String actualResourceId) {
		this.actualResourceId = actualResourceId;
	}

	@Column(name = "actualOperatorID", length = 60)
	public String getActualOperatorId() {
		return this.actualOperatorId;
	}

	public void setActualOperatorId(String actualOperatorId) {
		this.actualOperatorId = actualOperatorId;
	}

	@Column(name = "pauseProcess", nullable = false)
	public Short getPauseProcess() {
		return this.pauseProcess;
	}

	public void setPauseProcess(Short pauseProcess) {
		this.pauseProcess = pauseProcess;
	}

	@Column(name = "modifyExteriorHuman", length = 50)
	public String getModifyExteriorHuman() {
		return this.modifyExteriorHuman;
	}

	public void setModifyExteriorHuman(String modifyExteriorHuman) {
		this.modifyExteriorHuman = modifyExteriorHuman;
	}

	@Column(name = "associatedID", unique = true, nullable = false, length = 100)
	public String getAssociatedId() {
		return this.associatedId;
	}

	public void setAssociatedId(String associatedId) {
		this.associatedId = associatedId;
	}

	@Column(name = "singleOperationTime", nullable = false, precision = 18, scale = 6)
	public Double getSingleOperationTime() {
		return this.singleOperationTime;
	}

	public void setSingleOperationTime(Double singleOperationTime) {
		this.singleOperationTime = singleOperationTime;
	}

	@Column(name = "planID")
	public Integer getPlanId() {
		return this.planId;
	}

	public void setPlanId(Integer planId) {
		this.planId = planId;
	}

	@Column(name = "grossHours", precision = 18, scale = 6)
	public Double getGrossHours() {
		return this.grossHours;
	}

	public void setGrossHours(Double grossHours) {
		this.grossHours = grossHours;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "planStartTime0", length = 23)
	public Date getPlanStartTime0() {
		return this.planStartTime0;
	}

	public void setPlanStartTime0(Date planStartTime0) {
		this.planStartTime0 = planStartTime0;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "planStopTime0", length = 23)
	public Date getPlanStopTime0() {
		return this.planStopTime0;
	}

	public void setPlanStopTime0(Date planStopTime0) {
		this.planStopTime0 = planStopTime0;
	}

	@Column(name = "schedulState")
	public Byte getSchedulState() {
		return this.schedulState;
	}

	public void setSchedulState(Byte schedulState) {
		this.schedulState = schedulState;
	}

	@Column(name = "isUrgent", nullable = false)
	public Integer getIsUrgent() {
		return this.isUrgent;
	}

	public void setIsUrgent(Integer isUrgent) {
		this.isUrgent = isUrgent;
	}

	@Column(name = "dispatchState", nullable = false)
	public Integer getDispatchState() {
		return this.dispatchState;
	}

	public void setDispatchState(Integer dispatchState) {
		this.dispatchState = dispatchState;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "scheduleStartTime", length = 23)
	public Date getScheduleStartTime() {
		return this.scheduleStartTime;
	}

	public void setScheduleStartTime(Date scheduleStartTime) {
		this.scheduleStartTime = scheduleStartTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "scheduleStopTime", length = 23)
	public Date getScheduleStopTime() {
		return this.scheduleStopTime;
	}

	public void setScheduleStopTime(Date scheduleStopTime) {
		this.scheduleStopTime = scheduleStopTime;
	}

	@Column(name = "isChange", nullable = false)
	public Byte getIsChange() {
		return this.isChange;
	}

	public void setIsChange(Byte isChange) {
		this.isChange = isChange;
	}

	@Column(name = "scheduledStartTime", length = 18)
	public String getScheduledStartTime() {
		return this.scheduledStartTime;
	}

	public void setScheduledStartTime(String scheduledStartTime) {
		this.scheduledStartTime = scheduledStartTime;
	}

	@Column(name = "scheduledStopTime", length = 18)
	public String getScheduledStopTime() {
		return this.scheduledStopTime;
	}

	public void setScheduledStopTime(String scheduledStopTime) {
		this.scheduledStopTime = scheduledStopTime;
	}

	@Column(name = "ratio", precision = 18, scale = 6)
	public Double getRatio() {
		return this.ratio;
	}

	public void setRatio(Double ratio) {
		this.ratio = ratio;
	}

	@Column(name = "addRecordsPerson", length = 20)
	public String getAddRecordsPerson() {
		return this.addRecordsPerson;
	}

	public void setAddRecordsPerson(String addRecordsPerson) {
		this.addRecordsPerson = addRecordsPerson;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "addRecordsTime", length = 23)
	public Date getAddRecordsTime() {
		return this.addRecordsTime;
	}

	public void setAddRecordsTime(Date addRecordsTime) {
		this.addRecordsTime = addRecordsTime;
	}

	@Column(name = "autoMTID", length = 50)
	public String getAutoMtid() {
		return this.autoMtid;
	}

	public void setAutoMtid(String autoMtid) {
		this.autoMtid = autoMtid;
	}

	@Column(name = "versionInfo", length = 10)
	public String getVersionInfo() {
		return this.versionInfo;
	}

	public void setVersionInfo(String versionInfo) {
		this.versionInfo = versionInfo;
	}

	@Column(name = "operationClientID", length = 50)
	public String getOperationClientId() {
		return this.operationClientId;
	}

	public void setOperationClientId(String operationClientId) {
		this.operationClientId = operationClientId;
	}

	@Column(name = "activityType", length = 50)
	public String getActivityType() {
		return this.activityType;
	}

	public void setActivityType(String activityType) {
		this.activityType = activityType;
	}

	@Column(name = "isConfirmed", nullable = false)
	public Byte getIsConfirmed() {
		return this.isConfirmed;
	}

	public void setIsConfirmed(Byte isConfirmed) {
		this.isConfirmed = isConfirmed;
	}

	@Column(name = "processless", nullable = false)
	public Byte getProcessless() {
		return this.processless;
	}

	public void setProcessless(Byte processless) {
		this.processless = processless;
	}

	public String getPlanHours() {
		return planHours;
	}

	public void setPlanHours(String planWorkHour) {
		this.planHours = planWorkHour;
	}

	public String getActualHours() {
		return actualHours;
	}

	public void setActualHours(String actualWorkHour) {
		this.actualHours = actualWorkHour;
	}

	public String getIsExterior() {
		return isExterior;
	}

	public void setIsExterior(String isExterior) {
		this.isExterior = isExterior;
	}

	public int getIsEligible() {
		return isEligible;
	}

	public void setIsEligible(int isEligible) {
		this.isEligible = isEligible;
	}

	public int getIsDealed() {
		return isDealed;
	}

	public void setIsDealed(int isDealed) {
		this.isDealed = isDealed;
	}

	public String getPlanResource() {
		return planResource;
	}

	public void setPlanResource(String planResource) {
		this.planResource = planResource;
	}

	public String getActualResource() {
		return actualResource;
	}

	public void setActualResource(String actualResource) {
		this.actualResource = actualResource;
	}

	public boolean isHasFile() {
		return hasFile;
	}

	public void setHasFile(boolean hasFile) {
		this.hasFile = hasFile;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operatorName) {
		this.operator = operatorName;
	}

	public Timestamp getTransferTime() {
		return transferTime;
	}

	public void setTransferTime(Timestamp transferTime) {
		this.transferTime = transferTime;
	}

	public int getTransferState() {
		return transferState;
	}

	public void setTransferState(int transferState) {
		this.transferState = transferState;
	}

	public String getTransferCurrentDeptName() {
		return transferCurrentDeptName;
	}

	public void setTransferCurrentDeptName(String transferCurrentDeptName) {
		this.transferCurrentDeptName = transferCurrentDeptName;
	}

	public String getTransferDeptName() {
		return transferDeptName;
	}

	public void setTransferDeptName(String transferDeptName) {
		this.transferDeptName = transferDeptName;
	}

	public String getTransferOperatorName() {
		return transferOperatorName;
	}

	public void setTransferOperatorName(String transferOperatorName) {
		this.transferOperatorName = transferOperatorName;
	}

	public boolean getDefer() {
		return defer;
	}

	public void setDefer(boolean defer) {
		this.defer = defer;
	}

	public int getQualityState() {
		return qualityState;
	}

	public void setQualityState(int qualityState) {
		this.qualityState = qualityState;
	}

	public String getCheckResult() {
		return checkResult;
	}

	public void setCheckResult(String checkResult) {
		this.checkResult = checkResult;
	}

	public String getTreatedResult() {
		return treatedResult;
	}

	public void setTreatedResult(String treatedResult) {
		this.treatedResult = treatedResult;
	}

	public String getResultDetail() {
		return resultDetail;
	}

	public void setResultDetail(String resultDetail) {
		this.resultDetail = resultDetail;
	}

	public String getTreatedSuggestion() {
		return treatedSuggestion;
	}

	public void setTreatedSuggestion(String treatedSuggestion) {
		this.treatedSuggestion = treatedSuggestion;
	}

	public int getPartOrderId() {
		return partOrderId;
	}

	public void setPartOrderId(int partOrderId) {
		this.partOrderId = partOrderId;
	}

	public int getOperationOrderId() {
		return operationOrderId;
	}

	public void setOperationOrderId(int operationOrderId) {
		this.operationOrderId = operationOrderId;
	}

	public List<Operation> getPreList() {
		return preList;
	}

	public void setPreList(List<Operation> preList) {
		this.preList = preList;
	}

}